﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Sqo;

namespace Ivvy_Silverlight
{
    /// [Generated Jan 31 2011]
    public partial class i_Field_Details : ISqoDataObject
    {

        #region "private fields"

        private int _Field_Details_ID;
        private int _Field_ID;
        private int _Mask_ID;
        private int _Index;
        private string _Value;
        private bool _isDefault;

        #endregion

        #region "public properties"

        public int Field_Details_ID
        {
            get { return _Field_Details_ID; }
            set { _Field_Details_ID = value; }
        }
        public int Field_ID
        {
            get { return _Field_ID; }
            set { _Field_ID = value; }
        }
        public int Mask_ID
        {
            get { return _Mask_ID; }
            set { _Mask_ID = value; }
        }
        public int Index
        {
            get { return _Index; }
            set { _Index = value; }
        }
        public string Value
        {
            get { return _Value; }
            set { _Value = value; }
        }
        public bool isDefault
        {
            get { return _isDefault; }
            set { _isDefault = value; }
        }

        #endregion

        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }

        int ISqoDataObject.OID { get { return Field_Details_ID; } set { } }
        #endregion

        #region "MAPPER"
        public static Ivvy_Silverlight.i_Field_Details Convert(i7SR.Field_Details od_Field_Details)
        {
            return new Ivvy_Silverlight.i_Field_Details()
            {

                Field_Details_ID = Utils.IsNull(od_Field_Details.Field_Details_ID),
                Field_ID = Utils.IsNull(od_Field_Details.Field_ID),
                Mask_ID = Utils.IsNull(od_Field_Details.Mask_ID),
                Index = Utils.IsNull(od_Field_Details.Index),
                Value = Utils.IsNull(od_Field_Details.Value),
                isDefault = Utils.IsNull(od_Field_Details.isDefault),

            };
        }
        #endregion


        #region "REVERSEMAPPER"
        public static Ivvy_Silverlight.i7SR.Field_Details ReverseConvert(i_Field_Details od_Field_Details)
        {
            return new Ivvy_Silverlight.i7SR.Field_Details()
            {

                Field_Details_ID = Utils.ReverseIsNull(od_Field_Details.Field_Details_ID).Value,
                Field_ID = Utils.ReverseIsNull(od_Field_Details.Field_ID).Value,
                Mask_ID = Utils.ReverseIsNull(od_Field_Details.Mask_ID),
                Index = Utils.ReverseIsNull(od_Field_Details.Index),
                Value = Utils.ReverseIsNull(od_Field_Details.Value),
                isDefault = Utils.ReverseIsNull(od_Field_Details.isDefault),

            };
        }
        #endregion

    }
}

